package com.boot.service.impl;

import com.boot.mapper.UserMapper;
import com.boot.model.User;
import com.boot.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements IUserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public User login(User user) {

        return userMapper.getByUsernameAndPassword(user);
    }
}
